#导包
import requests

#准备测试数据
url = "https://www.baidu.com"
p = {
    "name":"zhangsan"
}

#发送get请求
response = requests.get(url, params=p)

#打印响应结果：状态码和文本
print(response.status_code)
print(response.text)
print(response.url)